package com.efast.cafe.portal.controller.common;

import java.util.List;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.efast.cafe.framework.controller.AbstractController;
import com.efast.cafe.portal.entity.company.PortalCompanyOrg;
import com.efast.cafe.portal.service.company.IPortalCompanyOrgService;

@Controller
public class CommonCompanyOrgController extends AbstractController{

	@Autowired
	private IPortalCompanyOrgService  portalCompanyOrgService;
	
	@RequestMapping(value = "/frame_center/common/firstlevelorgbycompanyuserlist")
	public @ResponseBody  List<PortalCompanyOrg>  getListFirstLevelOrgByCompanyUser(){
		
		return portalCompanyOrgService.getListFirstLevelOrgByCompanyUser();
	}
	
	
}
